package com.panda.cn.mapper;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panda.cn.entity.SysUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUserEntity> {
    
    
    Page<SysUserEntity> findPage(Page<SysUserEntity> page, @Param("ew") JSONObject params);
    
    /**
     * 插入用户工作角色
     *
     * @param params 参数个数
     */
    void insertUserJobRole(@Param("ew") SysUserEntity params);
    
    /**
     * 找到登录用户
     *
     * @param params 参数个数
     * @return {@link SysUserEntity}
     */
    SysUserEntity findLoginUser( @Param("ew")  JSONObject params);
}
